<template>
  <div class="bg">
    <div class="pikaqiu-container">
      <div class="eye eye-left"></div>
      <div class="eye eye-right"></div>
      <div class="nose"></div>
      <div class="upperLip"></div>
      <div class="lowerLip"></div>
      <div class="face face-left"></div>
      <div class="face face-right"></div>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({});
</script>
<style lang="scss" scoped>
.bg {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffe000;
}
.pikaqiu-container {
  position: relative;
  width: 22rem;
  height: 12.5rem;
}
.eye {
  position: absolute;
  top: 1rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid #000;
  border-radius: 50%;
  background: #2e2e2e;
}
.eye::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  margin-left: 0.4rem;
}
.eye-left {
  left: 3.5rem;
}
.eye-right {
  right: 3.5rem;
}
.nose {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2.5rem;
  width: 0;
  border-top: 1rem solid #000;
  border-bottom: none;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}
.upperLip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4rem;
  display: flex;
  z-index: 1;
}
.upperLip::before {
  content: "";
  display: block;
  width: 4rem;
  height: 1rem;
  border: 0.15rem solid #000;
  transform: rotate(-20deg);
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 76% 96%;
  background: #ffe000;
}
.upperLip::after {
  content: "";
  display: block;
  width: 4rem;
  height: 1rem;
  border: 0.15rem solid #000;
  transform: rotate(20deg);
  border-top: none;
  border-left: none;
  border-bottom-right-radius: 76% 96%;
  background: #ffe000;
}
.lowerLip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4.4rem;
  width: 6.2rem;
  height: 7.5rem;
  background: #9d0512;
  border: 0.1rem solid #000;
  border-top: none;
  border-bottom-left-radius: 3.1rem 7.5rem;
  border-bottom-right-radius: 3.1rem 7.5rem;
  overflow: hidden;
}
.lowerLip:after {
  content: "";
  display: block;
  width: 8.3rem;
  height: 8.3rem;
  border-radius: 50%;
  background: #fc4653;
  margin: 1.1rem auto 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.face {
  position: absolute;
  bottom: 1rem;
  width: 4rem;
  height: 4rem;
  background: #fb0d1c;
  border: 0.1rem solid #000;
  border-radius: 50%;
}
.face-left {
  left: 0.5rem;
}
.face-right {
  right: 0.5rem;
}
</style>
